package com.kakarote.hrm.controller;
import com.kakarote.core.common.Result;
import com.kakarote.core.feign.oa.entity.ExamineVO;
import com.kakarote.hrm.service.IHrmExamineService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 审批表 前端控制器
 * </p>
 * @author qun.xu
 * @since 2024-03-28
 */
@RestController
@RequestMapping("/hrmExamine")
@Slf4j
public class HrmExamineController {

    @Resource IHrmExamineService hrmExamineService;

    @PostMapping("/queryHrmExamineInfo/{examineId}")
    @ApiOperation("查询审批详情")
    public Result<ExamineVO> queryOaExamineInfo(@PathVariable("examineId") String examineId) {
        ExamineVO examineVO = hrmExamineService.queryHrmExamineInfo(examineId);
        return Result.ok(examineVO);
    }

}

